import os
from configparser import ConfigParser

from dotenv import load_dotenv

_conf_dir = os.path.dirname(__file__)
_conf_file = os.path.join(_conf_dir,'config.ini')


class MyParser(ConfigParser):
    def as_dict(self):
        d = dict(self._sections)
        return d

# def _get_all_conf():
# #     _config = MyParser()
# #     result = {}
# #     if os.path.isfile(_conf_file):
# #         try:
